package org.come.Jpanel;

import java.awt.CardLayout;
import java.awt.Dimension;

import javax.swing.JPanel;

public class SetsynthesisCardJpanel extends JPanel {

    private CardLayout car;
    private SynthesisJpanel synthesisJpanel;// 合成界面
    private WashJpanel washJpanel;// 洗炼界面
    private UpgradeJpanel upgradeJpanel;// 套装升级界面
    private JadeUpJpanel jadeUpJpanel;// 玉符升级界面
    private TransferJpanel transferJpanel;// 拆解/转移界面

    public SetsynthesisCardJpanel() {

        car = new CardLayout();
        this.setPreferredSize(new Dimension(490, 428));
        this.setLayout(car);
        this.setOpaque(false);
        synthesisJpanel = new SynthesisJpanel();
        this.add(synthesisJpanel, "l1");
        washJpanel = new WashJpanel();
        this.add(washJpanel, "l2");
        upgradeJpanel = new UpgradeJpanel();
        this.add(upgradeJpanel, "l3");
        jadeUpJpanel = new JadeUpJpanel();
        this.add(jadeUpJpanel, "l4");
        transferJpanel = new TransferJpanel();
        this.add(transferJpanel, "l5");
    }

    public CardLayout getCar() {
        return car;
    }

    public void setCar(CardLayout car) {
        this.car = car;
    }

    public SynthesisJpanel getSynthesisJpanel() {
        return synthesisJpanel;
    }

    public void setSynthesisJpanel(SynthesisJpanel synthesisJpanel) {
        this.synthesisJpanel = synthesisJpanel;
    }

    public WashJpanel getWashJpanel() {
        return washJpanel;
    }

    public void setWashJpanel(WashJpanel washJpanel) {
        this.washJpanel = washJpanel;
    }

    public UpgradeJpanel getUpgradeJpanel() {
        return upgradeJpanel;
    }

    public void setUpgradeJpanel(UpgradeJpanel upgradeJpanel) {
        this.upgradeJpanel = upgradeJpanel;
    }

    public JadeUpJpanel getJadeUpJpanel() {
        return jadeUpJpanel;
    }

    public void setJadeUpJpanel(JadeUpJpanel jadeUpJpanel) {
        this.jadeUpJpanel = jadeUpJpanel;
    }

    public TransferJpanel getTransferJpanel() {
        return transferJpanel;
    }

    public void setTransferJpanel(TransferJpanel transferJpanel) {
        this.transferJpanel = transferJpanel;
    }
}
